/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

/**
 *
 * @author skipy
 */
public final class Primarie extends Institutie {

    @Override
    public void tratareCerere(Cerere c) {
        if(c.getNrCF()== -1)
        {
        System.out.println("Vom incepe procesul de obtinere a autorizatiei de constructie.");
        Institutie i = new OCPI();
        this.setUrmatoarea(i);
        this.getUrmatoarea().tratareCerere(c);
        
        }
        else if(c.isAvizInginerRezistenta())
        {
        System.out.println("A-ti obtinut autorizatia de constructie!");
        }
        else System.out.println("Ne pare rau dar nu puteti obtine autorizatia de constructie.:(");
    }
    
}
